/* 
 * File:   main.c
 * Author: daniel
 *
 * Created on 22 de Maio de 2010, 14:53
 */

#include <stdio.h>
#include <stdlib.h>

/*
 * 
 */
int screenMenu() {
    int op;
    printf("\33[H\33[2J");
    printf("-----------------------------------\n");
    printf("-::::::::::::: Menu ::::::::::::::-\n");
    printf("-----------------------------------\n");
    printf("-[ 0 ] - Sair                     -\n");
    printf("-[ 1 ] - Processar arquivo        -\n");
    printf("-[ 2 ] - Montar arquivo           -\n");
    printf("-[ 3 ] - Executar programa        -\n");
    printf("-[ 4 ] - Créditos                 -\n");
    printf("-----------------------------------\n");
    printf("-Opção: ");
    scanf("%d", &op);
    getchar();
    return op;
}

void screenCreditos() {
    printf("\33[H\33[2J");
    printf("-----------------------------------\n");
    printf("-:::::::::::: Créditos :::::::::::-\n");
    printf("-----------------------------------\n");
    printf("8888888b.   .d8888b.        d888   \n");
    printf("888   Y88b d88P  Y88b      d8888   \n");
    printf("888    888 888    888        888   \n");
    printf("888   d88P 888               888   \n");
    printf("8888888P\"  888               888   \n");
    printf("888        888    888 888888 888   \n");
    printf("888        Y88b  d88P        888   \n");
    printf("888         \"Y8888P\"       8888888 \n");
    printf("-----------------------------------\n");
    printf("-Alunos:                          -\n");
    printf("-    * Andrws Vieira              -\n");
    printf("-    * Daniel S. Debastiani       -\n");
    printf("-    * Dieison S. Silveira        -\n");
    printf("-----------------------------------\n");
    printf("-- Ciência da Computação - UFPel --\n");
    printf("-----------------------------------\n");
    printf("Pressione [ENTER]...");
    getchar();
}

int main() {
    int opMenu;

    do {
        opMenu = screenMenu();

        switch (opMenu) {
            case 4:
                screenCreditos();
                break;
            default:
                break;
        }
    } while (opMenu != 0);

}

